import { ActivatedRoute, Router } from "@angular/router";

export class CompanyBaseWidget {
    constructor(
        private baseRoute: ActivatedRoute,
        private baseRouter: Router,
        private basePath?: string
    ) { }

    public navigate(): void {
        if(this.basePath)
            this.baseRouter.navigate([this.basePath], { relativeTo: this.baseRoute.parent.parent });
    }
}